|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.beans.beancontext.BeanContextChildSupport | +--java.beans.beancontext.BeanContextSupport | +--xdoclet.beans.BeanContextSupportEx | +--xdoclet.XDoclet
This class as an entry-point for starting XDoclet. Adapter classes for particular environments such as various IDEs and Ant should be maintained separately. It's important to keep XDoclet's core environment agnostic.
This class also extends BeanContextSupport
,
and thereby this is actually a Collection, so we can store the plugins
"in ourself". The main reason for extending BeanContextSupport is to
be a ble to provide IDE integration in a convenient way. See the
xdoclet.gui
Plugin
,
ClasspathManager
,
PluginFactory
,
XDocletException
,
Serialized FormField Summary | |
static String |
XDOCLET_VERSION
|
Fields inherited from class java.beans.beancontext.BeanContextSupport |
bcmListeners, children, designTime, locale, okToUseGui |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Fields inherited from interface java.beans.beancontext.BeanContext |
globalHierarchyLock |
Fields inherited from interface java.beans.DesignMode |
PROPERTYNAME |
Constructor Summary | |
XDoclet()
Creates a new XDoclet. |
Method Summary | |
Object |
createElement(String name)
Called by AntProxy.createDynamicElement(java.lang.String) when a dynamic element is added
to the XDoclet task. |
protected Collection |
createInvocations()
Creates a Collection of Invocation . |
MetadataProvider |
createMetadataProvider(String name)
|
Plugin |
createPlugin(String name)
Adds a new Plugin. |
void |
execute()
Executes all the plugins. |
void |
generateBuildXmlMaybe()
|
File |
getBuildXmlDir()
|
ClasspathManager |
getClasspathManager()
Gets that ClasspathManager. |
void |
setBuildXmlDir(File buildXmlDir)
If this is set, a build.xml file will be written out to the specified file. |
void |
setClasspath(String classpath)
Sets the classpath under which XDoclet is run. |
void |
setFailure(Throwable failure)
|
Methods inherited from class xdoclet.beans.BeanContextSupportEx |
add, getInvocations, getParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.beans.beancontext.BeanContextChild |
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
public static final String XDOCLET_VERSION
Constructor Detail |
public XDoclet()
Method Detail |
public final void setBuildXmlDir(File buildXmlDir)
buildXmlDir
- the file where build.xml should be written.public final File getBuildXmlDir()
public MetadataProvider createMetadataProvider(String name) throws XDocletException
XDocletException
public void setFailure(Throwable failure)
public void setClasspath(String classpath) throws XDocletException
classpath
- the classpath under which XDoclet is run
XDocletException
public ClasspathManager getClasspathManager()
public void execute() throws IOException, XDocletException
XDocletException
- if execution fails.
IOException
public void generateBuildXmlMaybe() throws IOException, XDocletException
IOException
XDocletException
public Object createElement(String name) throws XDocletException
AntProxy.createDynamicElement(java.lang.String)
when a dynamic element is added
to the XDoclet task. This method will route the call to createPlugin(java.lang.String)
.
name
- the name of the plugin to create.
Plugin
object mapped to name.
XDocletException
public Plugin createPlugin(String name) throws XDocletException
name
- Plugin name
XDocletException
- plugin creation fails.PluginFactory.createPlugin(java.lang.String, xdoclet.XDoclet)
protected Collection createInvocations()
BeanContextSupportEx
Invocation
. These serve
as dynamic factories for creation of sub elements. The default
implementation returns an empty Collection. Should be overridden by
subclasses that accept sub elements.
createInvocations
in class BeanContextSupportEx
Invocation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |